<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
	$.formValidator.initConfig({
		formid: "myform",
		autotip: true,
		onerror: function(msg, obj) {
			window.top.art.dialog({
				content: msg,
				lock: true,
				width: '200',
				height: '50'
			})
		}
	});
	$("#name").formValidator({
		onshow: "<?php echo L('input').L('name')?>",
		onfocus: "<?php echo L('input').L('name')?>"
	}).inputValidator({
		min: 1,
		onerror: "<?php echo L('input').L('name')?>"
	});

});
</script>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
	   <a href="./index.php?m=pass_game&c=manage&a=init" style="font-size:14px;color: #0000FF;font-weight:bolder;"><em>返回上一级</em></a>	
	</div>
</div>
<div class="pad-10">

	<form name="myform" action="?m=<?php echo ROUTE_M?>&c=<?php echo ROUTE_C?>&a=<?php echo ROUTE_A?>&id=<?=$id?>" method="post"
		id="myform" enctype="multipart/form-data">
		<div class="content pad-10" id="show_div_1" style="height: auto">
			<fieldset>
				<legend>关卡信息---编辑</legend>
				<table width="100%" class="table_form">
					<tr>
						<td width="120"><?php echo L('name')?>：</td>
						<td><input type="text" name="data[name]" id="name"
							class="input-text" value="<?= isset($data['name'])?$data['name']:""?>" /></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('limit_second')?>：</td>
						<td ><input type="text" id="limit_second" class="input-text"
									name="data[limit_second]"   value="<?= isset($data['limit_second'])?$data['limit_second']:""?>"  /><span style="color:red;font-weight:bolder;">注意：请输入正整数；单位为秒！</span></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('share_second')?>：</td>
						<td ><input type="text" id="share_second" class="input-text"
									name="data[share_second]"  value="<?= isset($data['share_second'])?$data['share_second']:""?>"   /><span style="color:red;font-weight:bolder;">注意：请输入正整数；单位为秒！</span></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('success_couple')?>：</td>
						<td ><input type="text" id="success_couple" class="input-text"
									name="data[success_couple]"  value="<?= isset($data['success_couple'])?$data['success_couple']:""?>"   /><span style="color:red;font-weight:bolder;">注意：请输入正整数！</span></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('pic_num')?>：</td>
						<td ><input type="text" id="pic_num" class="input-text"
									name="data[pic_num]"  value="<?= isset($data['pic_num'])?$data['pic_num']:""?>"   /><span style="color:red;font-weight:bolder;">注意：请输入正整数！</span></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('logo')?>：</td>

						<td><?php echo form::images('data[logo]', 'logo', isset($data['logo'])?$data['logo']:"", 'pass_game', '', 40)?></td>
					</tr>
					<tr>
						<td width="200"><?php echo L('share_title')?>：</td>
						<td ><textarea name="data[share_title]" id="share_title" cols="100" rows="8" ><?php if(isset($data['share_title']) ) { echo $data['share_title'];}?></textarea></td>
					</tr>
					<tr>
						<td width="120"><?php echo L('description')?>：</td>
						<td><textarea name="data[description]" id="description"><?php if(isset($data['description']) ) { echo $data['description'];}?></textarea><?php echo form::editor('description','full','','','',1,1,'',800,300)?></td>
					</tr>
				</table>
			</fieldset>

		</div>
		<div class="bk15"></div>
		<?php if(ROUTE_M != 'information'){?>
		<input name="dosubmit" type="submit" id="dosubmit"
			value="<?php echo L('submit')?>" class="button">
		<?php }?>

	</form>

</div>
</body>
</html>